package com.example.carprovideruser.service.impl.rsh;

import com.alibaba.dubbo.config.annotation.Service;
import com.example.carinterface.service.rsh.InsuranceTypeService;
import com.example.carinterface.utils.ResultJson;

import com.example.carprovideruser.mapper.rsh.InsuranceTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class InsuranceTypeServiceImpl implements InsuranceTypeService {

    @Autowired
    private InsuranceTypeMapper insuranceTypeMapper;

     ResultJson resultJson = new ResultJson();
    /**
     * 查询保险类型与保费信息
     * @return
     */

    @Override
    public ResultJson getInsuranceTypeInfo() {
        Map<String,Object> map = new HashMap<>();
        List list = insuranceTypeMapper.getInsuranceTypeInfo();
        System.out.println(list);
        map.put("list",list);
        resultJson.getSuccess("成功",map);
        return resultJson;
    }
}
